﻿
@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.Onlines

@model CreateOrEditOnlineModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditOnline") + ": " + Model.Online.LineId) : L("CreateOnline")))


<!--html代码区域-->
<div class="modal-body">
    <form name="onlineInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.Online.Id" />
        <div>
            <!--<div class="alert alert-info fs16 bold mt10">分节标题</div>-->


            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.Online.Id" />
                }
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group ">
                        <label for="lineIdEdit">@L("LineId")</label>
                        @Html.DropDownList("LineId", Model.Lines.Select(a => a.ToSelectListItem()), new
                   {
                       @class = "form-control selectpicker",
                       data_live_search = "true",
                       title = L("PlaaseSelect"),
                       id = "lineIdEdit"
                   })
                        @*@Html.DropDownList("LineId", Model.Lines.Select(a => a.ToSelectListItem()), new
                            {
                                @class = "form-control selectpicker",
                                data_live_search = "true",
                                id = "lineIdEdit"
                            })*@
                    </div>
                    <div class="form-group form-md-line-input form-md-floating-label no-hint">
                        <label>@L("OnlineTime"):   </label>
                        <input class="maxlength-handler form-control @(Model.Online.OnlineTime.ToString().IsNullOrEmpty() ? "" : " edited")" type="text" name="OnlineTime" value="@Model.Online.OnlineTime"/>
                    </div>
                    <div class="form-group form-md-line-input form-md-floating-label  ">
                        <label>@L("WorkTime") </label>
                        <input class="maxlength-handler form-control @(Model.Online.WorkTime.IsNullOrEmpty() ? "" : " edited")" type="text" name="WorkTime" value="@Model.Online.WorkTime" maxlength="20" />

                    </div>
                    <div class="form-group ">
                        <label>@L("BackrestAssemblyNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.BackrestAssemblyNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="BackrestAssemblyNo" value="@Model.Online.BackrestAssemblyNo" maxlength="50" />
                    </div>
                    <div class="form-group ">
                        <label>@L("BackrestCoverNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.BackrestCoverNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="BackrestCoverNo" value="@Model.Online.BackrestCoverNo" maxlength="50" />
                    </div>
                    <div class="form-group">
                        <label>@L("BackrestFoamNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.BackrestFoamNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="BackrestFoamNo" value="@Model.Online.BackrestFoamNo" maxlength="50" />
                    </div>
                    <div class="form-group  ">
                        <label>@L("BackFrameNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.BackFrameNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="BackFrameNo" value="@Model.Online.BackFrameNo" maxlength="50" />
                    </div>

                    <div class="form-group ">
                        <label>@L("HeadrestNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.HeadrestNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="HeadrestNo" value="@Model.Online.HeadrestNo" maxlength="50" />
                    </div>

                    <div class="form-group ">
                        <label>@L("HeadrestNo1") </label>
                        <input class="maxlength-handler form-control @(Model.Online.HeadrestNo1.IsNullOrEmpty() ? "" : " edited")" type="text" name="HeadrestNo1" value="@Model.Online.HeadrestNo1" maxlength="50" />
                    </div>

                    <div class="form-group  ">
                        <label>@L("ArmRestNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.ArmRestNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="ArmRestNo" value="@Model.Online.ArmRestNo" maxlength="50" />
                    </div>

                    <div class="form-group ">
                        <label>@L("BackplaneNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.BackplaneNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="BackplaneNo" value="@Model.Online.BackplaneNo" maxlength="50" />
                    </div>

                    <div class="form-group ">
                        <label>@L("AdjusterPlateNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.AdjusterPlateNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="AdjusterPlateNo" value="@Model.Online.AdjusterPlateNo" maxlength="50" />
                    </div>

                    
                </div>
                <div class="col-sm-6">

                    <div class="form-group form-md-line-input form-md-floating-label  ">
                        <label>@L("SeatID") </label>
                        <input class="maxlength-handler form-control @(Model.Online.SeatID.IsNullOrEmpty() ? "" : " edited")" type="text" name="SeatID" value="@Model.Online.SeatID" maxlength="50" />

                    </div>
                    <div class="form-group form-md-line-input form-md-floating-label no-hint">
                        <label>@L("OfflineTime"):   </label>
                        <input class="maxlength-handler form-control @(Model.Online.OfflineTime.ToString().IsNullOrEmpty() ? "" : " edited")" type="text" name="OfflineTime" value="@Model.Online.OfflineTime" />

                    </div>
                    <div class="form-group form-md-line-input form-md-floating-label  ">
                        <label>@L("OfflineFlag") </label>
                        <input class="maxlength-handler form-control @(Model.Online.OfflineFlag.ToString().IsNullOrEmpty() ? "" : " edited")" type="text" name="OfflineFlag" value="@Model.Online.OfflineFlag" />

                    </div>
                    <div class="form-group form-md-line-input form-md-floating-label  ">
                        <label>@L("CushionAssemblyNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.CushionAssemblyNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="CushionAssemblyNo" value="@Model.Online.CushionAssemblyNo" maxlength="50" />
                    </div>

                    <div class="form-group  ">
                        <label>@L("SlideNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.SlideNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="SlideNo" value="@Model.Online.SlideNo" maxlength="50" />
                    </div>

                    <div class="form-group  ">
                        <label>@L("CushionCoverNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.CushionCoverNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="CushionCoverNo" value="@Model.Online.CushionCoverNo" maxlength="50" />
                    </div>

                    <div class="form-group  ">
                        <label>@L("CushionFoamNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.CushionFoamNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="CushionFoamNo" value="@Model.Online.CushionFoamNo" maxlength="50" />
                    </div>
                    <div class="form-group ">
                        <label>@L("SABNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.SABNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="SABNo" value="@Model.Online.SABNo" maxlength="50" />
                    </div>
                    <div class="form-group ">
                        <label>@L("CenterHeadrestNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.CenterHeadrestNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="CenterHeadrestNo" value="@Model.Online.CenterHeadrestNo" maxlength="50" />
                    </div>
                    <div class="form-group ">
                        <label>@L("BuckleNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.BuckleNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="BuckleNo" value="@Model.Online.BuckleNo" maxlength="50" />
                    </div>
                    <div class="form-group ">
                        <label>@L("AdjusterNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.AdjusterNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="AdjusterNo" value="@Model.Online.AdjusterNo" maxlength="50" />
                    </div>

                    <div class="form-group">
                        <label>@L("CushioSsupportNo") </label>
                        <input class="maxlength-handler form-control @(Model.Online.CushioSsupportNo.IsNullOrEmpty() ? "" : " edited")" type="text" name="CushioSsupportNo" value="@Model.Online.CushioSsupportNo" maxlength="50" />
                    </div>

                </div>
            </div>
        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")

